﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using LibNiconico.NiconicoApi.Internal;
using LibNiconico.NiconicoApi.Extentions;

namespace LibNiconico.NiconicoApi.Lives.WayBackKey
{
    /// <summary>
    /// ニコニコ生放送過去コメント取得キーレスポンス
    /// </summary>
    public sealed class NicoLiveGetWayBackKeyResponse
    {
        /// <summary>
        /// 過去コメント取得キー
        /// </summary>
        public string WayBackKey;
        private NicoLiveGetWayBackKeyResponse(QueryStrings queryStrings)
        {
            WayBackKey = "";
        }

        /// <summary>
        /// コメント解析
        /// </summary>
        /// <param name="queryStrings"></param>
        /// <returns></returns>
        public static NicoLiveGetWayBackKeyResponse Parse(QueryStrings queryStrings)
        {
            NicoLiveGetWayBackKeyResponse res = new NicoLiveGetWayBackKeyResponse(queryStrings);
            res.WayBackKey = queryStrings["waybackkey"] ?? "";
            return res;
        }
    }
}
